//
//  AWSystemNoticeMessage.m
//  AtWork2
//
//  Created by patinong on 15/10/9.
//  Copyright © 2015年 Foreveross. All rights reserved.
//

#import "AWSystemNoticeMessage.h"

@implementation AWSystemNoticeMessage

static inline AWSystemNoticeMessageOperation parseSystemNoticeMessageOperation(NSString *operation) {
    if ([operation.uppercaseString isEqualToString:AWMessageKOperationChanged]) {
        return AWSystemNoticeMessageOperationUserChanged;
    }
    return NSNotFound;
}

- (AWSystemNoticeMessageOperation)operation {
    return parseSystemNoticeMessageOperation([self bodyValueForKey:AWMessageKOperation]);
}

@end
